<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">

<ui:composition>
    <a4j:form>
        <h:panelGroup id="panel">
            <a4j:commandLink reRender="login-box, panel, messages" action="#{SessionsAgent.createSession}" rendered="#{not SessionsAgent.showLoginBox and not SessionsAgent.loggedIn}">
                <img id="zaloguj_img" src="static/images/logowanie_btn.png" border="0"/>
            </a4j:commandLink>
            <a4j:commandLink reRender="login-box, panel, messages" action="#{SessionsAgent.createSession}" rendered="#{SessionsAgent.loggedIn}">
                <img id="wyloguj_img" src="static/images/wylogowanie_btn.png" border="0"/>
            </a4j:commandLink>
        </h:panelGroup>
    </a4j:form>
</ui:composition>

</html>

            